package dto

import (
	"ginfast/app/{{.App}}/model"
	"ginfast/pkg/orm"
)

type Where struct {
	orm.DbPage
}

func (p *Where) DbModelWhere(v any, handles ...func(dw *orm.DbWhere)) *orm.DbWhere {
	w := p.DbWhere()
	switch v.(type) {
	case *model.{{.Model}}:
	}
	for _, h := range handles {
		h(w)
	}
	return w.Model(v)
}
